package com.th.supcom.pds.outdrugreturnapply.client.widget;

import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.th.supcom.pds.common.client.commom.FieldPanel;

/**
 * 查询面板
 * 
 * @author yzhang
 */
public class OutDrugReturnPatientPanel extends FieldSet
{
    /** 退药文本域集合. */
    private final OutDrugReturnApplyFields m_outDrugReturnApplyFields;

    /**
     * 构造方法
     * 
     * @param drugReturnAndRefundFields
     * @param drugReturnButtons
     */
    public OutDrugReturnPatientPanel (OutDrugReturnApplyFields outDrugReturnApplyFields)
    {
        m_outDrugReturnApplyFields = outDrugReturnApplyFields;
        initUI ();
    }

    /**
     * 初始化界面
     */
    private void initUI ()
    {
        setHeading ("患者信息");
        setLayout (new FitLayout ());
        FieldPanel pp = new FieldPanel ();
        pp.setLabelAlian ("L");

        pp.addCol (m_outDrugReturnApplyFields.getPatiTypeField (), 1, null, 55);
        pp.addCol (m_outDrugReturnApplyFields.getPatiNameField (), 1, null, 55);
        pp.addCol (m_outDrugReturnApplyFields.getPatiIdWatchField (), 1, null, 55);
        pp.addCol (m_outDrugReturnApplyFields.getSexField (), 1, null, 55);
        pp.addCol (m_outDrugReturnApplyFields.getBirthDateField (), 1, null, 55);
        pp.addCol (m_outDrugReturnApplyFields.getPrepaidField (), 1, null, 55);
        pp.newRow ();
        pp.addCol (m_outDrugReturnApplyFields.getChargeTypeName (), 1, null, 55);
        pp.addCol (m_outDrugReturnApplyFields.getWatchTimes (), 1, null, 55);
        pp.addCol (m_outDrugReturnApplyFields.getDeptAdmissionDateField (), 1, null, 55);
        pp.addCol (m_outDrugReturnApplyFields.getDeptAdmissionNameField (), 1, null, 55);
        pp.addCol (m_outDrugReturnApplyFields.getDeptAdmissionDays (), 1, null, 55);
        pp.addCol (m_outDrugReturnApplyFields.getBedNoField (), 1, null, 55);
        pp.newRow ();
        add (pp);
    }
}
